//动态api
import request from '@/utils/request'

// 分页获取商家入驻审核列表
export const pageShopList = (data) => request({
  url: '/biz/shop/pageShopList',
  method: 'post',
  data
})


// 商家入驻审核通过
export const passShop = (data) => request({
  url: '/biz/shop/passShop',
  method: 'post',
  data
})

// 商家入驻审核驳回
export const rejectShop = (data) => request({
  url: '/biz/shop/rejectShop',
  method: 'post',
  data
})


// 分页获取商品审核列表
export const pageCommodityList = (data) => request({
  url: '/applet/commodity/pageCommodityList',
  method: 'post',
  data
})

// 商家封店，扣押金
export const handleShop = (data) => request({
  url: '/biz/shop/handleShop',
  method: 'post',
  data
})


// 商品审核通过
export const passCommodity = (data) => request({
  url: '/applet/commodity/passCommodity',
  method: 'post',
  data
})

// 商品审核驳回
export const rejectCommodity = (data) => request({
  url: '/applet/commodity/rejectCommodity',
  method: 'post',
  data
})


// 获取一级代理商后台首页信息
export const getAgentHomePage = (data) => request({
  url: '/biz/advertisementUser/getAgentHomePage',
  method: 'post',
  data
})

// 代理商用户拉新人数据
export const turnoverStatistics = (data) => request({
  url: '/biz/advertisementUser/turnoverStatistics',
  method: 'post',
  data
})

// 设置代理商指标
export const setAdvertisementUserMetricData = (data) => request({
  url: '/biz/advertisementUser/setAdvertisementUserMetricData',
  method: 'post',
  data
})

// 新增广告主信息
export const addAdvertisementSponsor = (data) => request({
  url: '/biz/advertisementUser/addAdvertisementSponsor',
  method: 'post',
  data
})
//获取用户投诉
// /biz/shopComplaints/getAllUserShopComplaintsListByTimeDesc
export const getAllUserShopComplaintsListByTimeDesc = (data) => request({
  url: '/biz/shopComplaints/getAllUserShopComplaintsListByTimeDesc',
  method: 'post',
  data
})
//通过投诉
// /biz/shopComplaints/passComplaints
export const passComplaints = (data) => request({
  url: '/biz/shopComplaints/passComplaints',
  method: 'post',
  data
})
//驳回投诉 /biz/shopComplaints/rejectComplaints

export const rejectComplaints = (data) => request({
  url: '/biz/shopComplaints/rejectComplaints',
  method: 'post',
  data

})
//代理商反馈
// /biz/advertisementUser/addAdFeedback
export const addAdFeedback = (data) => request({
  url: '/biz/advertisementUser/addAdFeedback',
  method: 'post',
  data
})
// 获取二级代理商后台首页信息
// /biz/advertisementUser/getSecondAgentHomePage
export const getSecondAgentHomePage = (data) => request({
  url: '/biz/advertisementUser/getSecondAgentHomePage',
  method: 'post',
  data

})